#ifndef __KEY_INPUT_H__
#define __KEY_INPUT_H__


#include "main.h"

#define KEY1_INPUT_PORT        GPIOA
#define KEY1_INPUT_PIN         GPIO_PIN_4
#define KEY1_INPUT_EXTI_LINE   EXTI_LINE4
#define KEY1_INPUT_PORT_SOURCE EXTI_LINE_SOURCE4
#define KEY1_INPUT_PIN_SOURCE  AFIO_EXTI_PA4
#define KEY1_INPUT_IRQn        EXTI4_IRQn


#define KEY2_INPUT_PORT        GPIOA
#define KEY2_INPUT_PIN         GPIO_PIN_5
#define KEY2_INPUT_EXTI_LINE   EXTI_LINE5
#define KEY2_INPUT_PORT_SOURCE EXTI_LINE_SOURCE5
#define KEY2_INPUT_PIN_SOURCE  AFIO_EXTI_PA5
#define KEY2_INPUT_IRQn        EXTI9_5_IRQn


// extern func 
void key_input_init(void);
void key_input_exit_nvic_disable();
#endif //__KEY_INPUT_H__